package com.hm.pan.service.impl;

import java.sql.Timestamp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hm.pan.mapper.FileUploadMapper;
import com.hm.pan.model.FileInfo;
import com.hm.pan.service.FileUploadService;

@Service
public class FileUploadServiceImpl implements FileUploadService {
	
	@Resource
	private FileUploadMapper fileUploadMapper;

	@Override
	public Object findMd5(String md5) {
		return fileUploadMapper.findMd5(md5);
	}

	@Override
	public Object insertFileInfo(FileInfo fileInfo) {
		return fileUploadMapper.insertFileInfo(fileInfo);
	}

	@Override
	public Object insertUserFile(Timestamp uploadTime, String fileName, String md5,Long fatherId,Long userId) {
		return fileUploadMapper.insertUserFile(uploadTime, fileName, md5,fatherId,userId);
	}

	@Override
	public Object findByNameFatherId(String fileName,Long fatherId) {
		return fileUploadMapper.findByNameFatherId(fileName,fatherId);
	}

}
